<template>
  <n-card v-if="isCard" hoverable :content-style="{ padding: '15px 20px' }">
    <slot></slot>
  </n-card>
  <div v-else>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
  defineProps({
    isCard: {
      type: Boolean,
      default: true
    }
  })
</script>

<style lang="less" scoped></style>
